import service from '@/alova'

const automaticApi = {
  getList: (data: any) => {
    return service.Get('/api/v1/Automatic/List', { params: data })
  },
  getDetail: (id: number) => {
    return service.Get(`/api/v1/Automatic/${id}`)
  },
  del: (id: number) => {
    return service.Delete(`/api/v1/Automatic/${id}`)
  },
  update: (id: number, data: any) => {
    return service.Patch(`/api/v1/Automatic/${id}`, data)
  },
  add: (data: any) => {
    return service.Post('/api/v1/Automatic', data)
  },
  queue: (id: number) => {
    return service.Post(`/api/v1/Automatic/queue/${id}`)
  },
}

export default automaticApi
